#include "breakpointtable.h"

BreakPointTable* BreakPointTable::table = 0;

BreakPointTable* BreakPointTable::getInstance(QObject *parent)
{
    if(table == 0)
    {
        table = new BreakPointTable(parent);
    }
    return table;
}

BreakPointTable::BreakPointTable(QObject *parent) :
    QObject(parent)
{
}

BreakPointTable::~BreakPointTable()
{
}

void BreakPointTable::addBreakPoint(quint32 address)
{
    breakpoints.insert(address);
}

void BreakPointTable::removeBreakPont(quint32 address)
{
    breakpoints.remove(address);
}

bool BreakPointTable::containsBreakPoint(quint32 address) const
{
    return breakpoints.contains(address);
}
